/**
 * Project Name:springmvc
 * File Name:SysServiceImpl.java
 * Package Name:cn.springmvc.service.impl
 * Date:2016年6月14日下午11:16:56
 * Copyright (c) 2016,  All Rights Reserved.
 *
*/

package cn.springmvc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.springmvc.mapper.SysFunctionMapper;
import cn.springmvc.mapper.SysRoleFunctionMapper;
import cn.springmvc.mapper.SysRoleMapper;
import cn.springmvc.mapper.SysUserMapper;
import cn.springmvc.mapper.SysUserRoleMapper;
import cn.springmvc.model.SysFunction;
import cn.springmvc.model.SysRole;
import cn.springmvc.model.SysRoleFunction;
import cn.springmvc.model.SysUser;
import cn.springmvc.model.SysUserRole;
import cn.springmvc.service.SysServiceI;

/**
 * ClassName:SysServiceImpl <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Date:     2016年6月14日 下午11:16:56 <br/>
 * @author   i1093108915@yeah.net
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
@Service
public class SysServiceImpl implements SysServiceI {
	
	@Autowired SysUserMapper sysUserMapper;
	
	@Autowired SysUserRoleMapper sysUserRoleMapper;
	
	@Autowired SysRoleMapper roleMapper;
	
	@Autowired SysFunctionMapper functionMapper;
	
	@Autowired SysRoleFunctionMapper roleFunctionMapper;

	@Override
	public int insert(SysUser record) {
		return sysUserMapper.insert(record);
	}

	@Override
	public List<SysUser> selectByExample(SysUser example) {

		return null;
	}

	@Override
	public int updateByExampleSelective(SysUser record) {

		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(SysRole record) {

		return roleMapper.insert(record);
	}

	@Override
	public List<SysRole> selectByExample(SysRole example) {

		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int insert(SysFunction record) {

		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<SysFunction> selectByExample(SysFunction example) {

		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int insert(SysUserRole record) {

		return sysUserRoleMapper.insert(record);
	}

	@Override
	public int insert(SysRoleFunction record) {

		// TODO Auto-generated method stub
		return roleFunctionMapper.insert(record);
	}

}

